package com.dxtan90.bean;


/**
 * @author: shijunhao
 * @date: 2021/12/1 22:39
 * @description: 操作对象
 */
public class Action {
    private String tarImgPath;
    private String operation;
    private Action next;
    private Position position;
    private Boolean imgFind = false;

    public Action() {
    }

    public Action(String operation, String tarImgPath) {
        this.tarImgPath = tarImgPath;
        this.operation = operation;
        this.imgFind = true;
    }

    public Action(String operation, Position position) {
        this.operation = operation;
        this.position = position;
        this.imgFind = false;
    }

    public Boolean getImgFind() {
        return imgFind;
    }

    public void setImgFind(Boolean imgFind) {
        this.imgFind = imgFind;
    }

    public Action getNext() {
        return next;
    }

    public Position getPosition() {
        return position;
    }

    public void setPosition(Position position) {
        this.position = position;
    }


    public String getTarImgPath() {
        return tarImgPath;
    }

    public void setTarImgPath(String tarImgPath) {
        this.tarImgPath = tarImgPath;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public Action nextAction(Action action) {
        this.next = action;
        return action;
    }

    @Override
    public String toString() {
        return "Action{[path=" +
                tarImgPath +
                "],[operation=" +
                operation +
                "],[" + position.toString() + "]}";
    }
}
